<?php
session_start();
$user = $_SESSION['user'];



?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="ico/logo.ico" type="image/x-icon" />
    <title >协同办公--首页</title>
    <link rel="stylesheet" href="../static/css/bootstrap.css">
    <link rel="stylesheet" href="../static/js/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../static/css/font.css">
    <link rel="stylesheet" href="../static/css/main.css">
    <style>
        #from-left{
            width: 600px;
        }
        #title-form{
            width: 90px;
        }
        #layui-card-body{
            display: flex;
            flex-direction: row;
            height: 400px;
        }
    </style>
</head>
<body>
<div id="logo"><div id="logo-img"><img src="../static/imaegs/logo/logo2.png"></div>
<div id="logo-right">
    <h5 ><i class="layui-icon" style="font-size: 18px; color: orange">&#xe645;</i>&nbsp;最新公告：<span id="notice">暂无公告</span></h5>
</div>
</div>
<div id="tiao">
    <div id="left"><a href="index.php"><i class="layui-icon" >&#xe68e;</i>&nbsp;首页</a>
        <a href="task.php"> <i class="layui-icon" >&#xe6b2;</i>&nbsp;任务</a>
        <a href="notice/notice.php"> <i class="layui-icon" >&#xe637;</i>&nbsp;公告栏</a>
        <a href="file.php"><i class="layui-icon" >&#xe621;</i>&nbsp;文件管理</a>
        <a href="add_user.php"><i class="layui-icon">&#xe613;</i>&nbsp;用户管理</a>
    </div>
    <div id="right">
        <a style="color:grey" href="update.php">您好！&nbsp;<i class="layui-icon" >&#xe66f;</i>
            <input  id="user" name="user" readonly="readonly" value="<?php echo $user ?>"></a>
        <a onclick="out()">退出</a></div>
</div>

<div id="from_block">

    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <ul class="layui-tab-title">
            <li class="layui-this">管理员</li>
            <li>任务</li>
            <li>公告</li>
            <li><a href="update.php">个人中心</a></li>
            <li>配置邮箱</li>
        </ul>
        <div class="layui-tab-content" style="height: 200px;">
            <div class="layui-tab-item layui-show">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header">问候信息</div>
                            <div class="layui-card-body">
                                <div class="layui-card-header">个人信息</div>
                                <div class="layui-card-body" style="display: flex;flex-direction: row">
                                    <div id="head-img"><img src="" id="headImg">
                                        <a style="font-size: 8px">头像</a>
                                    </div>

                                    <div id="title">
                                        <label>用户账号：</label><a id="user_name"></a><br>
                                        <label>电话：</label><a id="user_tel"></a><br>
                                        <label>邮箱：</label><a id="user_email"></a>
                                    </div>
                                    <div id="title">
                                        <label>邀请码：</label><a id="code"></a><br>
                                        <label>团队名称：</label><a id="user_class"></a>
                                    </div>
                                    <div id="title" style="width: 50%">

                                        <label>最近公告：</label><a id="user_task" href="notice/notice.php" >无</a><br>
                                        <label>最新任务：</label><a id="user_notice" href="task.php" style="">暂无</a><br>
                                    </div>
                                </div>

                                <hr>
                                <button class="btn btn-warning " onclick="xiuGai()" lay-submit lay-filter="login" style="margin-left: 70%" type="button">修改个人信息</button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
            <div class="layui-tab-item">


                <div class="layui-row layui-col-space15" >
                    <div class="layui-col-md12" id="uul">

                    </div>
                </div>


            </div>
            <div class="layui-tab-item">

                <ul class="layui-timeline" id="notice-list">


                </ul>


            </div>
            <div class="layui-tab-item">
            </div>
            <div class="layui-tab-item" >
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header" id="message">修改个人信息</div>
                            <div class="layui-card-body" id="layui-card-body" >
                                <div id="from-left">
                                    <div  class="layui-form-item">
                                        <label class="layui-form-label login-form" id="title-form">邮箱：</label>
                                        <div class="layui-input-inline login-inline">
                                            <input type="text" name="QQemail" id="QQemail" lay-verify="required" placeholder="请输入你的邮箱" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label login-form" id="title-form">授权码：</label>
                                        <div class="layui-input-inline login-inline">
                                            <input type="text" name="serverCode" id="serverCode" lay-verify="required" placeholder="请填写授权码" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>
                                    <button class="btn btn-warning " lay-submit lay-filter="login" style="float: right" onclick="updateEmail()" type="button">保  存</button>
                                </div>
                                <div id="from-right"  style="margin-left: 100px;width: 600px">
                                    <div class="layui-card-header"><a href="http://service.mail.qq.com/cgi-bin/help?subtype=1&no=166&id=28" style="color: blue"> 帮助中心:如何获取QQ邮箱的授权码？</a></div>
                                    <div class="layui-card-header">温馨提示：请确保授权码的正确性，否则将无法正常发送邮件。使用QQ邮箱，现在的QQ邮箱为了安全和不至于被滥用,特别对SMTP功能进行限制,必须手动开通才能使用,这为我们的使用带来了一些不方便,但要使用这项功能,就必须进行开通的操作,</div>

                                    <hr>

                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>








</div>
<hr>
<img id="hua1" src="../static/imaegs/122.png">
<div id="footer">
    <hr>
    <a id="fot-word">
        版权信息：xianghai保留所有权利，请尊重他人的劳动成果   ||    备案号：蜀ICP备18021117号
        ||           地址：四川省成都市高新区天一街83号软件大楼
    </a>
</div>
<script src="../static/js/jquery.min.js"></script>
<script src="../static/js/layui/layui.all.js"></script>
<script src="../static/js/main.js"></script>

</body>
</html>